package com.czkj.hwz.decorate.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.czkj.hwz.decorate.R;
import com.king.base.adapter.ViewHolderAdapter;
import com.king.base.adapter.holder.ViewHolder;

import java.util.List;

/**
 * 作者：lxm on 2017/11/13 15:57
 * 邮箱：18014168291@189.cn
 * 才智科技
 */
public class MessageAdapter extends ViewHolderAdapter<String> {
    public MessageAdapter(Context context, List<String> listData) {
        super(context, listData);
    }

    @Override
    public View buildConvertView(LayoutInflater layoutInflater, String s, int position, ViewGroup parent) {
        return inflate(R.layout.message_item,parent,false);
    }

    @Override
    public void bindViewDatas(ViewHolder holder, String s, int position) {
        holder.setText(R.id.msg_type,s);
    }
}
